# -*- mode: snippet -*-
# name: if else
# key: rifelse
# --
if ($1) {
   `yas/selected-text`$2
} else {
   $0
}